import request from '@/request'

//获取评论
export function getCommentsByArticle(id) {
    return request({
        url: `/comments/article/${id}`,
        method: 'get'
    })
}
//提交评论
export function publishComment(comment,token) {
    return request({
        headers: {'Authorization': token},
        url: '/comments/create/change',
        method: 'post',
        data: comment
    })
}
